<template>
	<view>
		<view class="history-count">
			<view v-for="(item,index) in historyList" :key="index" class="history-count-list" >
				<view class="history-count-list-count">
					<image :src="item.imgs" mode=""></image>
					<view class="history-count-list-text">
						<text style="font-size: 18px;font-weight: bold;">{{item.name}}</text>
						<view style="color: #bab9be;">
							<text>{{item.area}}</text>
							<text style="margin-left: 10px;">{{item.range}}</text>
						</view>
						<view style="color: #bab9be;">
							<text>{{item.type}}</text>
							<text style="margin-left: 10px;">{{item.point}}</text>
						</view>
					</view>
				</view>
				<text style="color: #c98277;">{{item.price}}/平</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				historyList: [],
			};
		},
		onLoad() {
			this.historyList = uni.getStorageSync('history')
			console.log(this.historyList);
		},
		onShow() {
			this.historyList = uni.getStorageSync('history')
		},
	}
</script>

<style lang="less">
	.history-count-list {
		display: flex;
		justify-content: space-between;
		padding: 10rpx;
		box-sizing: border-box;
		background-color: #fff;
		align-items: center;

		.history-count-list-count {
			display: flex;

			image {
				width: 200rpx;
				height: 160rpx;
			}

		}

		.history-count-list-text {
			display: flex;
			flex-direction: column;
			margin-left: 10px;

		}
	}
</style>
